package com.suoluo.zenadmin.http;

import java.util.List;

import org.apache.commons.httpclient.NameValuePair;

public final class Http {

	private static HttpClientProxy client = HttpClientProxy.getInstance();
	
	private Http(){
	}
	
	public static HttpResponse get(String url){
		return client.get(url);
	}
	
	public static HttpResponse get(String url,List<NameValuePair> params){
		return client.get(url, params);
	}
	
	public static HttpResponse post(String url,List<NameValuePair> params){
		return client.post(url, params);
	}
	
	public static HttpResponse post(String url,String json){
		return client.post(url, json);
	}
	
	public static void main(String [] args){
		HttpResponse resp = Http.get("https://www.alipay.com/");
		System.out.println(resp.asString());
	}
}
